package com.ct.system.orm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *系统部门
 * </p>
 *
 * @author Auto Generator
 * @since 2023-08-17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_system_department")
public class AdminSystemDepartment implements java.io.Serializable {

    //业务ID
    @TableId
    private Long id;

    //系统名字
    private String name;

    // 创建时间
    private Date createTime;

    // 更新时间
    private Date updateTime;

    //开启状态 1：开启 0：未开启
    private Integer status;

    //排序
    private Integer sorted;

    // 父ID
    private Long parentId;

    // 系统ID
    private Long systemId;

    // 默认
    private Integer defaultFlag;

    // 隶属公司
    private String systemName;

    // 隶属公司
    @TableField(exist = false)
    private String code;;

    @TableField(exist = false)
    private Object count;;

    // 子部门
    @TableField(exist = false)
    private List<AdminSystemDepartment> children;
}
